<template>
  <div>
    <Header></Header>
    <router-view/>
    <Footer v-show="$route.meta['footerShow']"></Footer>
  </div>
</template>

<script>
import Header from "@/components/Header";
import Footer from "@/components/Footer";
export default {
  name:'App',
  components:{
    Header,
    Footer
  },
  mounted() {
    // 首次运行获取轮商品分类数据
    this.$store.dispatch('categoryList')
    //  首次运行获取轮播图数据
    this.$store.dispatch('getBannerList')
    // 首次运行获取floorList
    this.$store.dispatch('getFloorList')
  }
}
</script>

<style>

</style>
